﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wallpaper.Models.DTOs.WeChatLogin;
using Wallpaper.Models.Entities;

namespace Wallpaper.Services.IService
{
    public interface IWeChatService
    {
        Task<WeChatLoginResult> CodeToSessionAsync(string code);
        Task<User> GetOrCreateUserAsync(WeChatLoginResult wechatInfo, string ipAddress, string nickname = null, string avatarUrl = null);
    }
}
